#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
#include<stdio.h>
#include<assert.h>
char* my_strcat(char* dest, const char* src,size_t num)
{
	char* ret = dest;
	assert(dest != NULL);
	assert(dest != NULL);
	while (*dest)
	{
		dest++;
	}
	for (int i = 0; i < num; i++)
	{
		*dest = *src;
		dest++;
		src++;
	}
	*dest = '\0';
	return ret;
}
int main()
{
	char dest[12] = "hello ";
	char src[] = "world";
	my_strcat(dest, src,5);
	printf("%s", dest);
	return 0;
}
